package com.stud;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.core.SpringVersion;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * 启动程序
 *
 * @author Stud
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@Slf4j
@EnableScheduling
@EnableAsync
//@EnableDiscoveryClient
public class StudApplication {
    public static void main(String[] args) {
        SpringApplication.run(StudApplication.class, args);

        System.out.println("JAVA版本:" + System.getProperty("java.version"));
        System.out.println("Spring版本:" + SpringVersion.getVersion());
        System.out.println("SpringBoot版本:" + SpringBootVersion.getVersion());
    }
}
